package com.copa.module.cart.service;

import com.copa.domain.ResponseDto;
import com.copa.module.cart.domain.dto.CartListDto;
import com.copa.module.cart.domain.entity.CartEntity;
import com.copa.module.cart.domain.vo.CartAddVo;
import com.copa.module.cart.domain.vo.CartUpdateVo;

import java.util.List;

/**
 * @author copa
 * @createDate 2021-01-18 15:18
 * @function
 */
public interface CartService {
    ResponseDto<List<CartListDto>> list(String openId);

    ResponseDto<String> put(String openId, CartUpdateVo cartUpdateVo);

    ResponseDto<String> delete(String openId, Long cartId);

    ResponseDto<String> post(String openId, CartAddVo cartAddVo);

    ResponseDto<String> deleteList(Long userId, List<Long> cartId);

    List<CartEntity> findList(Long userId, List<Long> cartIds);
}
